package com.pig.service.impl;

import com.pig.dao.OrderMapper;
import com.pig.pojo.order.Order;
import com.pig.pojo.user.User;
import com.pig.service.OrderService;
import com.pig.util.SysResult;
import com.pig.util.SysResultLayui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> showOrder() {
        List<Order> ordersList = orderMapper.showOrder();
        System.out.println(ordersList);
        return ordersList;
    }
}
